import React from 'react'
import ReactDOM from 'react-dom/client'
import './index.css'

import AppRouter from './router/router'
import { RouterProvider } from 'react-router-dom'

const root = document.getElementById("root")
if (!root) {
  throw new Error("root element not found");
}
ReactDOM.createRoot(root).render(
  <React.StrictMode>
    <RouterProvider router={AppRouter()} />
  </React.StrictMode>
);